import request from '@/utils/request'
import store from '@/store'
export function purchaseBoardTop() {
  return request({
    url: '/purchase/board/top/' + store.getters.companyId,
    method: 'get'
  })
}
export function materialPurchaseSort(data, companyId) {
  return request({
    url: '/purchase/board/ranking/' + data + '/' + companyId,
    method: 'get'
  })
}
export function consignmentTimely() {
  return request({
    url: '/purchase/board/timelyDeliveryRate?companyId=' + store.getters.companyId,
    method: 'get'
  })
}
export function purchaseDeliveryTimeWarning(data) {
  return request({
    url: '/purchase/board/deliveryWarning',
    method: 'post',
    data: data
  })
}
